package com.project.personnel.service;

import com.project.personnel.entity.Department;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author diaominyh
 * @since 2022-12-12
 */
public interface DepartmentService extends IService<Department> {
    public List<Department> listDempartment(@Param("name") String name);
    int deleteDepartment(Integer parentId);
    Integer list(Integer id);
    List<Department> listDep(Integer parentId);
    Department department(Integer id);
}
